Optimal. Leaf size=231 \[ \frac {a+b x}{3 (b d-a e) (d+e x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b (a+b x)}{2 (b d-a e)^2 (d+e x)^2 \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b^2 (a+b x)}{(b d-a e)^3 (d+e x) \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b^3 (a+b x) \log (a+b x)}{(b d-a e)^4 \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {b^3 (a+b x) \log (d+e x)}{(b d-a e)^4 \sqrt {a^2+2 a b x+b^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 231, normalized size of antiderivative = 1.00, number of steps
used = 3, number of rules used = 2, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.071, Rules used = {660, 46}
\begin {gather*} \frac {b^2 (a+b x)}{\sqrt {a^2+2 a b x+b^2 x^2} (d+e x) (b d-a e)^3}+\frac {b (a+b x)}{2 \sqrt {a^2+2 a b x+b^2 x^2} (d+e x)^2 (b d-a e)^2}+\frac {a+b x}{3 \sqrt {a^2+2 a b x+b^2 x^2} (d+e x)^3 (b d-a e)}+\frac {b^3 (a+b x) \log (a+b x)}{\sqrt {a^2+2 a b x+b^2 x^2} (b d-a e)^4}-\frac {b^3 (a+b x) \log (d+e x)}{\sqrt {a^2+2 a b x+b^2 x^2} (b d-a e)^4} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rule 660
Rubi steps
\begin {align*} \int \frac {1}{(d+e x)^4 \sqrt {a^2+2 a b x+b^2 x^2}} \, dx &=\frac {\left (a b+b^2 x\right ) \int \frac {1}{\left (a b+b^2 x\right ) (d+e x)^4} \, dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {\left (a b+b^2 x\right ) \int \left (\frac {b^3}{(b d-a e)^4 (a+b x)}-\frac {e}{b (b d-a e) (d+e x)^4}-\frac {e}{(b d-a e)^2 (d+e x)^3}-\frac {b e}{(b d-a e)^3 (d+e x)^2}-\frac {b^2 e}{(b d-a e)^4 (d+e x)}\right ) \, dx}{\sqrt {a^2+2 a b x+b^2 x^2}}\\ &=\frac {a+b x}{3 (b d-a e) (d+e x)^3 \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b (a+b x)}{2 (b d-a e)^2 (d+e x)^2 \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b^2 (a+b x)}{(b d-a e)^3 (d+e x) \sqrt {a^2+2 a b x+b^2 x^2}}+\frac {b^3 (a+b x) \log (a+b x)}{(b d-a e)^4 \sqrt {a^2+2 a b x+b^2 x^2}}-\frac {b^3 (a+b x) \log (d+e x)}{(b d-a e)^4 \sqrt {a^2+2 a b x+b^2 x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.05, size = 124, normalized size = 0.54 \begin {gather*} \frac {(a+b x) \left (2 (b d-a e)^3+3 b (b d-a e)^2 (d+e x)+6 b^2 (b d-a e) (d+e x)^2+6 b^3 (d+e x)^3 \log (a+b x)-6 b^3 (d+e x)^3 \log (d+e x)\right )}{6 (b d-a e)^4 \sqrt {(a+b x)^2} (d+e x)^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.57, size = 256, normalized size = 1.11
method | result | size |
default | \(\frac {\left (b x +a \right ) \left (6 \ln \left (b x +a \right ) b^{3} e^{3} x^{3}-6 \ln \left (e x +d \right ) b^{3} e^{3} x^{3}+18 \ln \left (b x +a \right ) b^{3} d \,e^{2} x^{2}-18 \ln \left (e x +d \right ) b^{3} d \,e^{2} x^{2}+18 \ln \left (b x +a \right ) b^{3} d^{2} e x -18 \ln \left (e x +d \right ) b^{3} d^{2} e x -6 a \,b^{2} e^{3} x^{2}+6 b^{3} d \,e^{2} x^{2}+6 \ln \left (b x +a \right ) b^{3} d^{3}-6 \ln \left (e x +d \right ) b^{3} d^{3}+3 a^{2} b \,e^{3} x -18 a \,b^{2} d \,e^{2} x +15 b^{3} d^{2} e x -2 e^{3} a^{3}+9 a^{2} b d \,e^{2}-18 a \,b^{2} d^{2} e +11 b^{3} d^{3}\right )}{6 \sqrt {\left (b x +a \right )^{2}}\, \left (a e -b d \right )^{4} \left (e x +d \right )^{3}}\) | \(256\) |
risch | \(\frac {\sqrt {\left (b x +a \right )^{2}}\, \left (-\frac {b^{2} e^{2} x^{2}}{e^{3} a^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}}+\frac {\left (a e -5 b d \right ) b e x}{2 e^{3} a^{3}-6 a^{2} b d \,e^{2}+6 a \,b^{2} d^{2} e -2 b^{3} d^{3}}-\frac {2 a^{2} e^{2}-7 a b d e +11 b^{2} d^{2}}{6 \left (e^{3} a^{3}-3 a^{2} b d \,e^{2}+3 a \,b^{2} d^{2} e -b^{3} d^{3}\right )}\right )}{\left (b x +a \right ) \left (e x +d \right )^{3}}+\frac {\sqrt {\left (b x +a \right )^{2}}\, b^{3} \ln \left (-b x -a \right )}{\left (b x +a \right ) \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}-\frac {\sqrt {\left (b x +a \right )^{2}}\, b^{3} \ln \left (e x +d \right )}{\left (b x +a \right ) \left (e^{4} a^{4}-4 a^{3} b d \,e^{3}+6 a^{2} b^{2} d^{2} e^{2}-4 a \,b^{3} d^{3} e +b^{4} d^{4}\right )}\) | \(348\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: ValueError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] Leaf count of result is larger than twice the leaf count of optimal. 420 vs.
\(2 (181) = 362\).
time = 3.15, size = 420, normalized size = 1.82 \begin {gather*} \frac {11 \, b^{3} d^{3} - {\left (6 \, a b^{2} x^{2} - 3 \, a^{2} b x + 2 \, a^{3}\right )} e^{3} + 3 \, {\left (2 \, b^{3} d x^{2} - 6 \, a b^{2} d x + 3 \, a^{2} b d\right )} e^{2} + 3 \, {\left (5 \, b^{3} d^{2} x - 6 \, a b^{2} d^{2}\right )} e + 6 \, {\left (b^{3} x^{3} e^{3} + 3 \, b^{3} d x^{2} e^{2} + 3 \, b^{3} d^{2} x e + b^{3} d^{3}\right )} \log \left (b x + a\right ) - 6 \, {\left (b^{3} x^{3} e^{3} + 3 \, b^{3} d x^{2} e^{2} + 3 \, b^{3} d^{2} x e + b^{3} d^{3}\right )} \log \left (x e + d\right )}{6 \, {\left (b^{4} d^{7} + a^{4} x^{3} e^{7} - {\left (4 \, a^{3} b d x^{3} - 3 \, a^{4} d x^{2}\right )} e^{6} + 3 \, {\left (2 \, a^{2} b^{2} d^{2} x^{3} - 4 \, a^{3} b d^{2} x^{2} + a^{4} d^{2} x\right )} e^{5} - {\left (4 \, a b^{3} d^{3} x^{3} - 18 \, a^{2} b^{2} d^{3} x^{2} + 12 \, a^{3} b d^{3} x - a^{4} d^{3}\right )} e^{4} + {\left (b^{4} d^{4} x^{3} - 12 \, a b^{3} d^{4} x^{2} + 18 \, a^{2} b^{2} d^{4} x - 4 \, a^{3} b d^{4}\right )} e^{3} + 3 \, {\left (b^{4} d^{5} x^{2} - 4 \, a b^{3} d^{5} x + 2 \, a^{2} b^{2} d^{5}\right )} e^{2} + {\left (3 \, b^{4} d^{6} x - 4 \, a b^{3} d^{6}\right )} e\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [B] Leaf count of result is larger than twice the leaf count of optimal. 570 vs.
\(2 (165) = 330\).
time = 0.91, size = 570, normalized size = 2.47 \begin {gather*} - \frac {b^{3} \log {\left (x + \frac {- \frac {a^{5} b^{3} e^{5}}{\left (a e - b d\right )^{4}} + \frac {5 a^{4} b^{4} d e^{4}}{\left (a e - b d\right )^{4}} - \frac {10 a^{3} b^{5} d^{2} e^{3}}{\left (a e - b d\right )^{4}} + \frac {10 a^{2} b^{6} d^{3} e^{2}}{\left (a e - b d\right )^{4}} - \frac {5 a b^{7} d^{4} e}{\left (a e - b d\right )^{4}} + a b^{3} e + \frac {b^{8} d^{5}}{\left (a e - b d\right )^{4}} + b^{4} d}{2 b^{4} e} \right )}}{\left (a e - b d\right )^{4}} + \frac {b^{3} \log {\left (x + \frac {\frac {a^{5} b^{3} e^{5}}{\left (a e - b d\right )^{4}} - \frac {5 a^{4} b^{4} d e^{4}}{\left (a e - b d\right )^{4}} + \frac {10 a^{3} b^{5} d^{2} e^{3}}{\left (a e - b d\right )^{4}} - \frac {10 a^{2} b^{6} d^{3} e^{2}}{\left (a e - b d\right )^{4}} + \frac {5 a b^{7} d^{4} e}{\left (a e - b d\right )^{4}} + a b^{3} e - \frac {b^{8} d^{5}}{\left (a e - b d\right )^{4}} + b^{4} d}{2 b^{4} e} \right )}}{\left (a e - b d\right )^{4}} + \frac {- 2 a^{2} e^{2} + 7 a b d e - 11 b^{2} d^{2} - 6 b^{2} e^{2} x^{2} + x \left (3 a b e^{2} - 15 b^{2} d e\right )}{6 a^{3} d^{3} e^{3} - 18 a^{2} b d^{4} e^{2} + 18 a b^{2} d^{5} e - 6 b^{3} d^{6} + x^{3} \cdot \left (6 a^{3} e^{6} - 18 a^{2} b d e^{5} + 18 a b^{2} d^{2} e^{4} - 6 b^{3} d^{3} e^{3}\right ) + x^{2} \cdot \left (18 a^{3} d e^{5} - 54 a^{2} b d^{2} e^{4} + 54 a b^{2} d^{3} e^{3} - 18 b^{3} d^{4} e^{2}\right ) + x \left (18 a^{3} d^{2} e^{4} - 54 a^{2} b d^{3} e^{3} + 54 a b^{2} d^{4} e^{2} - 18 b^{3} d^{5} e\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.76, size = 246, normalized size = 1.06 \begin {gather*} \frac {1}{6} \, {\left (\frac {6 \, b^{4} \log \left ({\left | b x + a \right |}\right )}{b^{5} d^{4} - 4 \, a b^{4} d^{3} e + 6 \, a^{2} b^{3} d^{2} e^{2} - 4 \, a^{3} b^{2} d e^{3} + a^{4} b e^{4}} - \frac {6 \, b^{3} e \log \left ({\left | x e + d \right |}\right )}{b^{4} d^{4} e - 4 \, a b^{3} d^{3} e^{2} + 6 \, a^{2} b^{2} d^{2} e^{3} - 4 \, a^{3} b d e^{4} + a^{4} e^{5}} + \frac {11 \, b^{3} d^{3} - 18 \, a b^{2} d^{2} e + 9 \, a^{2} b d e^{2} - 2 \, a^{3} e^{3} + 6 \, {\left (b^{3} d e^{2} - a b^{2} e^{3}\right )} x^{2} + 3 \, {\left (5 \, b^{3} d^{2} e - 6 \, a b^{2} d e^{2} + a^{2} b e^{3}\right )} x}{{\left (b d - a e\right )}^{4} {\left (x e + d\right )}^{3}}\right )} \mathrm {sgn}\left (b x + a\right ) \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {1}{\sqrt {{\left (a+b\,x\right )}^2}\,{\left (d+e\,x\right )}^4} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________